<form action="" method="post">
    <input type="text" name="text">
    <input type="submit" name="sub" value="格式化">
</form>
<?php
/**
 * User: lie
 * Date: 2020/12/3 17:44
 * Title: 货币数据的格式化输出
 * Description:
 * Error:
 */
if (!empty($_POST['sub'])) {
    echo number_format($_POST['text'],3,'.', ',');
}
